<?php
  // dsm($dt_data);
  global $base_url;
  $json = array();
  foreach($dt_data as $key => $node) {
    $json[$key]['title'] = $node->title;
    $json[$key]['url'] = $base_url.'/node/'.$node->nid;
  }
  $json = drupal_json_encode($json);
  print $json;
?>
